export default {
  details: {
    code: 'details',
    name: '条件明细',
    fields: [{
      name: '条件表达式',
      code: 'condition_exp',
      type: 'exp_condition',
      rangeset: {}
    }, {
      name: '表达式描述',
      code: 'conditon_memo',
      type: 'memo'
    }, {
      name: '是否匹配',
      code: 'matched',
      type: 'bool',
      rangeset: '0:否@3:是'
    }
    /*, {
      name: '条件id',
      code: 'condition_id',
      type: 'code'
    }, {
      name: '序号',
      code: 'serial',
      type: 'integer'
    }, {
      name: '备注',
      code: 'memo',
      type: 'memo'
    }*/],
    actions: [
      {
        code: 'add',
        type: 'add',
        name: '添加规则',
        param: {
          local: true,
          size: 'max',
          col: 2
        }
      },
      {
        code: 'edit',
        type: 'edit',
        name: '编辑',
        locate: 'inline',
        param: {
          local: true,
          size: 'max',
          col: 2
        }
      },
      {
        type: 'ruleExecEdit',
        name: '执行规则',
        locate: 'inline'
      }
    ]
  },
  param: {
    code: 'params',
    name: '规则参数',
    type: 'editor',
    fields: [{
      name: '编码',
      code: 'code',
      type: 'code'
    }, {
      name: '名称',
      code: 'name',
      type: 'code'
    }, {
      name: '类型',
      code: 'type',
      type: 'code',
      rangeset: ['pk', 'code', 'date', 'timestamp', 'memo', 'money', 'seriescode', 'stat', 'clob', 'integer', 'ref', 'json']
    }, {
      name: '作用范围',
      code: 'scope',
      type: 'state',
      rangeset: 'data:数据@param:参数@both:全部'
    }, {
      name: '取值范围',
      code: 'rangeset',
      type: 'code'
    }, {
      name: '备注',
      code: 'memo',
      type: 'memo'
    }]
  }
}
